package com.njust.enums;

/**
 * @author zjwpro@foxmail.com
 * @date 2018/3/10 上午10:59
 */
public enum FaultMessage {

    ZHENDONGALARM(1,"振动报警"),
    ZHENDONGWARN(4,"振动预警"),
    ZHOUWENALARM(2,"轴温报警"),
    ZHOUWENWARN(5,"轴温预警"),
    MOTORALARM(3,"电机报警"),
    MOTORWARN(6,"电机预警"),
    ABNORMAL(7,"设备异常");

    private final int code;

    private final String msg;

    FaultMessage(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
